package ro.imc.rest.shared.dto;

import com.google.gwt.user.client.rpc.IsSerializable;


public enum LearningObjectType implements IsSerializable {
	CATALOG,
	COURSE,
	COURSE_TEMPLATE,
	WBT,
	FEEDBACK,
	QTI_TEST;
	
	private static String CATALOG_ICO = "img/catalog.png";
	private static String COURSE_ICO = "img/course.png";
	private static String COURSE_TEMPLATE_ICO = "img/template.png";
	private static String MEDIA_ICO = "img/media.png";
	
	public String getIconImage () {
		switch (this) {
		case CATALOG:
			return CATALOG_ICO;
		case COURSE:
			return COURSE_ICO;
		case COURSE_TEMPLATE:
			return COURSE_TEMPLATE_ICO;
		case FEEDBACK:
		case QTI_TEST:
		case WBT:
			return MEDIA_ICO;
		default:
			return "";
		
		}
	}
	public boolean isFolder () {
		return this == CATALOG ? true : false;
	}
}
